.addProductForm {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.header h3 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.closeButton {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
}

.closeButton:hover {
    color: #666;
}

.formGroup {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.formGroup label {
    width: 100px;
    text-align: right;
    margin-right: 15px;
    color: #333;
    font-size: 14px;
    flex-shrink: 0;
}

.formGroup label::after {
    content: "：";
}

.formGroup input {
    flex: 1;
    height: 32px;
    padding: 4px 11px;
    background-color: #f5f5f5;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.formGroup input:focus {
    background-color: white;
    border-color: #40a9ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.formActions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.submitButton,
.cancelButton {
    min-width: 100px;
    height: 32px;
    padding: 4px 15px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.submitButton {
    background-color: #1890ff;
    color: white;
}

.submitButton:hover {
    background-color: #40a9ff;
}

.cancelButton {
    background-color: #f0f0f0;
    color: #333;
    margin-left: 8px;
}

.cancelButton:hover {
    background-color: #d9d9d9;
}

/* 必填项标记 */
.required::before {
    content: "*";
    color: #ff4d4f;
    margin-right: 4px;
}

.imageUploadContainer {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uploadBox {
    position: relative;
    width: 100%;
}

.fileInput {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.uploadLabel {
    display: inline-block;
    padding: 8px 16px;
    background-color: #f5f5f5;
    border: 1px dashed #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.uploadLabel:hover {
    border-color: #40a9ff;
    color: #40a9ff;
}

.imagePreview {
    width: 100%;
    max-width: 200px;
    margin-top: 10px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.imagePreview img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
} 